extends Node2D



var anim
var state = 0

func _ready():
	anim = $AnimationPlayer
	anim.play("fall")
	$Marker.hide()

func _on_animation_player_animation_finished(anim_name):
	if (state == 0):
		anim.play("up")
		state = 1
	else:
		anim.play("fall")
		state = 0
